package com.william.jdbcplus.boot.test.entity;

import com.william.jdbcplus.common.annotation.TableId;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户实体
 *
 * @author Chill
 */
@Data
@NoArgsConstructor
@ApiModel(value = "用户登陆信息")
public class UserEntity implements Entity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.GUID, size = 32)
    private String id;

    @ApiModelProperty(value = "客户端id", hidden = true)
    private String clientId;

    @ApiModelProperty(value = "租户id", hidden = true)
    private String tenantId;

    @ApiModelProperty(value = "角色id", hidden = true)
    private String roleId;

    @ApiModelProperty(value = "角色名")
    private String roleName;

    @ApiModelProperty(value = "机构码")
    private String orgCode;

    @ApiModelProperty(value = "机构名称")
    private String orgName;

    @ApiModelProperty(value = "用户类型")
    private String userType;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户码")
    private String userCode;

    @ApiModelProperty(value = "是否管理员")
    private Boolean isAdmin;

    @ApiModelProperty(value = "科室编码")
    private String deptCode;

    @ApiModelProperty(value = "岗位编码，以逗号分开")
    private String postCodes;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机")
    private String phone;

    @ApiModelProperty(value = "院内专业")
    private String prof;

    @ApiModelProperty(value = "科室代码")
    private String deptName;

    @ApiModelProperty(value = "院区ID")
    private String hosId;

    @ApiModelProperty(value = "登录时间")
    private String loginTime;

    @ApiModelProperty(value = "工号")
    private String jobNumber;

    @ApiModelProperty(value = "照片")
    private String photo;

    @ApiModelProperty(value = "处方权")
    private String presRight;

    @ApiModelProperty(value = "职称")
    private String hireTitle;
}
